package com.youaishujuhui.devops.web.exception;

/**
 * 
* @Description: 自定义异常
* @author chendongming
* @date 2018年5月15日 下午8:30:38
*
 */
public class CustomException extends Exception{

	private static final long serialVersionUID = 1L;
	
	private ExceptionType type;

	private Object exceptionData;
      
    public CustomException(ExceptionType exceptionType){
        super(exceptionType.getMsg());  
        this.type = exceptionType;
    }

	public ExceptionType getType() {
		return type;
	}

	public void setType(ExceptionType type) {
		this.type = type;
	}

	public Object getExceptionData() {
		return exceptionData;
	}

	public CustomException setExceptionData(Object exceptionData) {
		this.exceptionData = exceptionData;
		return this;
	}
}
